Replace an existing file with new content while preserving the file ID. The operation follows these steps:
Each step is atomic, but if a step fails, previous steps will not be automatically rolled back.
API key to authorize requests.
Unique identifier of the file to replace
File replacement data including new file content and optional metadata
File successfully replaced
Comprehensive metadata information about a file in storage.
Unique identifier for the file.
"d5e76ceb-77a2-4153-b7da-1f7c115b2ff2"
Name of the file including extension.
"profile-picture.jpg"
Size of the file in bytes.
245678
ID of the bucket containing the file.
"users-bucket"
Entity tag for cache validation.
"\"a1b2c3d4e5f6\""
Timestamp when the file was created.
"2023-01-15T12:34:56Z"
Timestamp when the file was last updated.
"2023-01-16T09:45:32Z"
Whether the file has been successfully uploaded.
true
MIME type of the file.
"image/jpeg"
ID of the user who uploaded the file.
"abc123def456"
Custom metadata associated with the file.
{
"alt": "Profile picture",
"category": "avatar"
}